package com.qskj.springsecurity.single.mapper;

import com.qskj.springsecurity.single.pojos.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @author shikf
 * @version 1.0     2021-02-03 16:33
 */
@Component
public interface UserMapper {
    @Select("select * from users where username=#{username}")
    User findByUsername(@Param("username") String username);
}
